package service.administrator;

import java.util.List;
import dao.RecordDuplicateException;
import entities.Administrator;


/**
 * This interface defines the method needed to manage a customer.
 * @author 
 *
 */
public interface AdministratorService {

	/**
	 * Finds a customer based on the customer id.
	 * @param sid - customer id
	 * @return the instance of the customer
	 */
	public Administrator findAdministrator(String username);
	
	
	/**
	 * Adds a new customer to the system.
	 * @param obj - the customer instance to add
	 * @exception RecordDuplicateException if the customer is already in the system.
	 */
	public void addAdministrator(Administrator obj) throws RecordDuplicateException;
	
	public void setAdministrator(Administrator obj);
		
	public void removeAdministrator(Administrator obj);
	
	public List<Administrator> administratorList();
}
